<?php /* Smarty version 2.6.19, created on 2003-12-31 20:30:25
         compiled from C:%5Cxampp%5Chtdocs%5Cudeal.in%5CInterfaces%5Ctemplates/admin/user/view_edit_user.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header1'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header2'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_leftsidebar'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
<?php echo '
$(document).ready(function() {
	// validate signup form on keyup and submit
	var userid = document.getElementById(\'userid\').value;
	var validator = $("#frmUserProfile").validate({
		errorElement:\'div\',
		rules: {
         		first_name:{
				required: true,
				maxlength: 25
			},
			last_name:{
				required: true,
				maxlength: 25
			},
			email: {
				required: true,
				email: true
			},

		},
		messages: {
			first_name:{
				required: "Enter first name",
				maxlength: "required maximum 25 characters"
			},
			last_name:{
				required: "Enter last name",
				maxlength: "required maximum 25 characters"
			},
			email: {
				required: "Please enter email address",
				email: "Please enter a valid email address",
				remote: jQuery.format("{0} is already in use or marked as spam.")
			},

		},

		// set this class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.hide();
		}
	});
	// propose username by combining first- and lastname
	$("#username").focus(function() {
		var first_name = $("#first_name").val();
		var last_name = $("#last_name").val();
		if(first_name && last_name && !this.value) {
			this.value = first_name + "." + last_name;
			this.value = this.value.toLowerCase();
		}
	});
});
'; ?>

</script>

<div class="middel_panel">
<h1 class="type2">Edit Admin Users</h1>
<div class="holdthisTop">
	<div class="breadcrumb"><!--<a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/index.php">Home</a>&nbsp;&gt;&nbsp;--><a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/user/">Manage Admin </a>&nbsp;&gt;&nbsp;Edit Admin</div>
  <div align="center">
     <?php echo $this->_tpl_vars['msg']; ?>
 
  </div>
  <div class="fl width60">
    <form name="frmUserProfile" id="frmUserProfile" action="" method="post" style="padding-top:20px;">
      <input type="hidden" name="user_id" id="user_id" value="<?php echo $this->_tpl_vars['user']->getId(); ?>
" />
      <table cellspacing="6" cellpadding="2" width="100%" border="0" class="datagrid">
	<tr><TD colspan="2"></TD></tr>
        <tr>
          <td align="right" valign="top">
             First name <font color="red">*</font> : 
          </td>
          <td>
            <input type="text" maxlength="20" value="<?php echo $this->_tpl_vars['user']->getFirstName(); ?>
" name="first_name" id="first_name" class="textbox width60"/>
          </td>
        </tr>
        <tr>
          <td align="right" valign="top">
             Last name <font color="red">*</font> : 
          </td>
          <td>
            <input type="text" maxlength="20" value="<?php echo $this->_tpl_vars['user']->getLastName(); ?>
" name="last_name" class="textbox width60"/>
          </td>
        </tr>
        <tr>
          <td align="right" valign="top">
             Email address <font color="red">*</font> : 
          </td>
          <td>
            <input type="text" maxlength="70" value="<?php echo $this->_tpl_vars['user']->getEmail(); ?>
" name="email" id="email" class="textbox width60"/>
          </td>
        </tr>
        <tr>
          <td align="right" valign="top">
             Password:
          </td>
          <td>
            <input type="password" maxlength="15" name="password" id="password" class="textbox width60"/>
            <br/>
             Only enter if you want to reset pass. 
          </td>
        </tr>
        <tr>
          <td align="right" valign="top">
             Country:
          </td>
          <td>
            <select name="countryid" id="countryid" class="selectbox"> <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['country']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?> <option value="<?php echo $this->_tpl_vars['country'][$this->_sections['i']['index']]['countryid']; ?>
" <?php if ($this->_tpl_vars['user']->getCountryId() == $this->_tpl_vars['country'][$this->_sections['i']['index']]['countryid']): ?>selected="selected"<?php endif; ?>>
              <?php echo $this->_tpl_vars['country'][$this->_sections['i']['index']]['country']; ?>

            </option> <?php endfor; endif; ?> </select>
          </td>
        </tr>
        <tr>
          <td>
          </td>
          <td>
		<div class="buttons"><input type="submit" name="Submit" value="Save"/>  </div>
		<div class="buttons"><input type="button" value="Cancel" onclick="javascript: return history.back();" /></div>
          </td>
        </tr>
      </table>
    </form>
  </div>
</div>
 </div>
  </td>
  <div class="clr">
  </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>